-- GENERATED SPELL FOR [Haarka the Ravenous] --


function spell0_8205(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(21081,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8205', 30274, 1)
end

function spell1_8205(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_8205', 621, 1)
end

function Sorts_8205(pUnit, Event)
local choix_sorts_8205 = math.random(0, 1)
if choix_sorts_8205 == 0 then
pUnit:RegisterEvent('spell0_8205', 1, 1)
end
if choix_sorts_8205 == 1 then
pUnit:RegisterEvent('spell1_8205', 1, 1)
end
end

function mob8205_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8205', math.random(1500, 3000), 1)
end

function mob8205_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8205_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8205_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8205, 1, 'mob8205_Action')
RegisterUnitEvent(8205, 2, 'mob8205_Leave')
RegisterUnitEvent(8205, 3, 'mob8205_Kill')
RegisterUnitEvent(8205, 4, 'mob8205_Die')
